package edu.yourl.web.components;

import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.WebComponent;
import org.apache.wicket.model.IModel;

public class YourlImage extends WebComponent {

	private static final long serialVersionUID = 1L;

	public YourlImage(String id, IModel<String> model) {
		super(id, model);
	}
	
	protected void onComponentTag(ComponentTag tag) {
        super.onComponentTag(tag);
        checkComponentTag(tag, "img");
        tag.put("src", this.getDefaultModelObjectAsString());
    }

}
